package com.wbs.shop.nuby.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by zhoucl on 2018/6/13 0013.
 */
public class SpecBean extends BaseBean implements Parcelable {

    /**
     * createDate : 2018-03-28 23:03:14
     * goodsId : 4
     * id : 2
     * marketPrice : 120
     * price : 0.02
     * quantity : 1200
     * shareCommis : 0
     * shareCommisSuper : 0
     * shopId : d8b7c273408
     * specName : 白色
     */

    private String createDate;
    private int goodsId;
    private int id;
    private int marketPrice;
    private String price;
    private int quantity;
    private int shareCommis;
    private int shareCommisSuper;
    private String shopId;
    private String specName;

    public String getCreateDate() {
        return createDate == null ? "" : createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getMarketPrice() {
        return marketPrice;
    }

    public void setMarketPrice(int marketPrice) {
        this.marketPrice = marketPrice;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public int getShareCommis() {
        return shareCommis;
    }

    public void setShareCommis(int shareCommis) {
        this.shareCommis = shareCommis;
    }

    public int getShareCommisSuper() {
        return shareCommisSuper;
    }

    public void setShareCommisSuper(int shareCommisSuper) {
        this.shareCommisSuper = shareCommisSuper;
    }

    public String getShopId() {
        return shopId == null ? "" : shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public String getSpecName() {
        return specName == null ? "" : specName;
    }

    public void setSpecName(String specName) {
        this.specName = specName;
    }

    public SpecBean() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.createDate);
        dest.writeInt(this.goodsId);
        dest.writeInt(this.id);
        dest.writeInt(this.marketPrice);
        dest.writeString(this.price);
        dest.writeInt(this.quantity);
        dest.writeInt(this.shareCommis);
        dest.writeInt(this.shareCommisSuper);
        dest.writeString(this.shopId);
        dest.writeString(this.specName);
    }

    protected SpecBean(Parcel in) {
        this.createDate = in.readString();
        this.goodsId = in.readInt();
        this.id = in.readInt();
        this.marketPrice = in.readInt();
        this.price = in.readString();
        this.quantity = in.readInt();
        this.shareCommis = in.readInt();
        this.shareCommisSuper = in.readInt();
        this.shopId = in.readString();
        this.specName = in.readString();
    }

    public static final Creator<SpecBean> CREATOR = new Creator<SpecBean>() {
        @Override
        public SpecBean createFromParcel(Parcel source) {
            return new SpecBean(source);
        }

        @Override
        public SpecBean[] newArray(int size) {
            return new SpecBean[size];
        }
    };
}
